package com.tiny.work.plane;

import java.math.BigDecimal;

public class AutoPilotModel extends NormalModel {

    public AutoPilotModel(BigDecimal oilPerKm, BigDecimal hourPerKm) {
        super(oilPerKm, hourPerKm);
    }

    public AutoPilotModel() {
    }

    @Override
    public boolean isMatch(Context context) {
        Pilot pilot = context.getPilot();
        ArrangePilot arrangePilot = context.getArrangePilot();
        if (pilot.isFemale() && pilot.isInSpecialTime(arrangePilot.curTime)) {
            return true;
        }
        return super.isMatch(context);
    }
}
